package com.example.text.diyviews

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.example.text.R
import com.example.text.base.BaseActivity
import com.example.text.databinding.ActivityCodeBinding
import com.example.text.main.viewmodel.MainViewModel
import com.example.text.utils.ToastUtils

class CodeActivity : BaseActivity<MainViewModel,ActivityCodeBinding>() {
    override val mLayoutResId: Int
        get() = R.layout.activity_code
    //输入完成回调
//    autoIdentify.getLastTextComplete(str -> {
//        //输入完成，@ToDo
//
//    });
    override fun initView() {
        super.initView()
        mBinding.autoIdentify.getLastTextComplete(object : AutoIdentifyView.LastTextComplete {
            override fun lastComplete(str: String) {
                ToastUtils.showShort(this@CodeActivity,"最后一位输入完成")
            }

        })
    }






}